package com.common.platform.base.enums;

import lombok.Getter;

@Getter
public enum CommonStartus {

    ENABLE("ENABLE","启用"),SISABLE("DISABLE","禁用");

    String code;
    String message;

    CommonStartus(String code,String message){
        this.code=code;
        this.message=message;
    }

    public static String getDescription(String status){
        if(status==null){
            return "";
        }else{
            for (CommonStartus s:CommonStartus.values()){
                if (status.equals(s.getCode())){
                 return s.getMessage();
                }
            }
        }
        return "";
    }
}
